#ifndef TASK_H_INCLUDED
#define TASK_H_INCLUDED

#include <stdbool.h>

struct Task;

struct Task * task_create( const char *, int stdin, int stdout );
bool task_fork_needed( struct Task * );
void task_run_forked( struct Task * );
void task_run_unforked( struct Task * );
void task_free( struct Task * );

#endif // TASK_H_INCLUDED
